package com.achievement.mappings;

import com.achievement.domain.dto.BookAuthorDTO;
import com.achievement.domain.dto.BookDTO;
import com.achievement.domain.entity.BookAuthorEntity;
import com.achievement.domain.entity.BookEntity;
import com.achievement.domain.vo.BookAuthorVO;
import com.achievement.domain.vo.BookVO;
import org.mapstruct.Mapper;

/**
 * kygladmin BookMapping
 */

@Mapper(componentModel = "spring")
public interface BookMapping {

    BookVO entity2Vo(BookEntity entity);


    BookEntity dto2Entity(BookDTO dto);

    BookAuthorVO authorEntity2Vo(BookAuthorEntity bookAuthorEntity);

    BookAuthorEntity bookDto2BookEntity(BookAuthorDTO bookAuthorDTO);
}
